package threads;/*
 *@author wenqh
 *@date 2024/4/22 8:46
 *@Description
 */

public class MyThread extends Thread{

    @Override
    public void run() {
        System.out.println("多线程");
        for (int i = 0; i < 500; i++) {
            System.out.println(getName()+"--------"+i);
        }
    }

    public static void main(String[] args) {
        MyThread myThread1 = new MyThread();
        myThread1.run();

        MyThread myThread2 = new MyThread();
        myThread2.run();
    }

}
